//package com.example.activiti.demo.config;
//
//import org.activiti.engine.*;
//import org.junit.After;
//import org.junit.Before;
//import org.junit.runner.RunWith;
//import org.springframework.test.context.ContextConfiguration;
//import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
//
//@RunWith(SpringJUnit4ClassRunner.class)
//@ContextConfiguration("classpath:flowable-context.xml")
//public class BaseConfiguation {
//
//
//    protected ProcessEngine processEngine;
//    protected TaskService taskService;
//    protected RuntimeService runtimeService;
//    protected RepositoryService repositoryService;
//    protected HistoryService historyService;
//    protected DynamicBpmnService dynamicBpmnService;
//    protected ManagementService managementService;
//    protected ProcessEngineConfiguration processEngineConfiguration;
//
//    @Before
//    public void testProcessEngine() {
//        processEngine = ProcessEngines.getDefaultProcessEngine();
//        System.out.println("流程引擎类：" + processEngine);
//
//        taskService = processEngine.getTaskService();
//        runtimeService = processEngine.getRuntimeService();
//        repositoryService = processEngine.getRepositoryService();
//        historyService = processEngine.getHistoryService();
//        dynamicBpmnService = processEngine.getDynamicBpmnService();
//        managementService = processEngine.getManagementService();
//        processEngineConfiguration = processEngine.getProcessEngineConfiguration();
//
//        String name = processEngine.getName();
//
//        System.out.println("流程引擎的名称： " + name);
//        System.out.println(processEngineConfiguration);
//
//    }
//
//    /**
//     * 关闭流程引擎
//     */
//    @After
//    public void close() {
//        processEngine.close();
//    }
//
//}
